<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TURN Server: StunAttrReservationToken Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">TURN Server
   &#160;<span id="projectnumber">1.5</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">StunAttrReservationToken Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for StunAttrReservationToken:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classStunAttrReservationToken.png" usemap="#StunAttrReservationToken_map" alt=""/>
  <map id="StunAttrReservationToken_map" name="StunAttrReservationToken_map">
<area href="classStunAttr.html" alt="StunAttr" shape="rect" coords="0,0,158,24"/>
</map>
 </div></div>

<p><a href="classStunAttrReservationToken-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9acb342dd37acf6bdba6cc696c18cbb3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classStunAttrReservationToken.html#a9acb342dd37acf6bdba6cc696c18cbb3">StunAttrReservationToken</a> ()</td></tr>
<tr class="memitem:a5a987ca9ae22130b34df9185d7465b3e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classStunAttrReservationToken.html#a5a987ca9ae22130b34df9185d7465b3e">StunAttrReservationToken</a> (const <a class="el" href="classStunAttrIterator.html">StunAttrIterator</a> &amp;iter)  throw (WrongStunAttrFormatException, EndOfStunMsgException)</td></tr>
<tr class="memitem:a558f40b5819304dacd0078e207f2b17b"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classStunAttrReservationToken.html#a558f40b5819304dacd0078e207f2b17b">~StunAttrReservationToken</a> ()</td></tr>
<tr class="memitem:ac8a61729e3685638ab5288e994ad1f76"><td class="memItemLeft" align="right" valign="top">u64bits&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classStunAttrReservationToken.html#ac8a61729e3685638ab5288e994ad1f76">getReservationToken</a> () const </td></tr>
<tr class="memitem:a6c9dc57f842fcf9182c575bdbc6fc8a8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classStunAttrReservationToken.html#a6c9dc57f842fcf9182c575bdbc6fc8a8">setReservationToken</a> (u64bits rt)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a7d37332dfffd963e9546ae48fa174abd"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classStunAttrReservationToken.html#a7d37332dfffd963e9546ae48fa174abd">addToBuffer</a> (u08bits *buffer, size_t &amp;sz)  throw (WrongStunAttrFormatException, WrongStunBufferFormatException)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Reservation token attribute class </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00280">280</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9acb342dd37acf6bdba6cc696c18cbb3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classStunAttrReservationToken.html#a9acb342dd37acf6bdba6cc696c18cbb3">StunAttrReservationToken::StunAttrReservationToken</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00282">282</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">: _rt(0) {}
</pre></div>
</div>
</div>
<a class="anchor" id="a5a987ca9ae22130b34df9185d7465b3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classStunAttrReservationToken.html#a9acb342dd37acf6bdba6cc696c18cbb3">StunAttrReservationToken::StunAttrReservationToken</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classStunAttrIterator.html">StunAttrIterator</a> &amp;&#160;</td>
          <td class="paramname"><em>iter</em></td><td>)</td>
          <td>  throw (<a class="el" href="classWrongStunAttrFormatException.html">WrongStunAttrFormatException</a>, <a class="el" href="classEndOfStunMsgException.html">EndOfStunMsgException</a>)<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00283">283</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                                                           :
                <a class="code" href="classStunAttr.html#ad36b6880e055d053a0c476d3bfe5fdd7">StunAttr</a>(iter) {

                <span class="keywordflow">if</span>(iter.<a class="code" href="classStunAttrIterator.html#a63ae0391b82db2cb43bf145c1d9b3cf1">eof</a>())
                        <span class="keywordflow">throw</span> <a class="code" href="classEndOfStunMsgException.html">EndOfStunMsgException</a>();
                _rt = <a class="code" href="ns__turn__msg_8h.html#a9d262ce740ed097be15d47c3ca050d67">stun_attr_get_reservation_token_value</a>(<a class="code" href="classStunAttr.html#a5d66a8ad2d753ef9279217eaf453d657">getSar</a>(iter));
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a558f40b5819304dacd0078e207f2b17b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classStunAttrReservationToken.html#a558f40b5819304dacd0078e207f2b17b">StunAttrReservationToken::~StunAttrReservationToken</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00291">291</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">{}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7d37332dfffd963e9546ae48fa174abd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int <a class="el" href="classStunAttrReservationToken.html#a7d37332dfffd963e9546ae48fa174abd">StunAttrReservationToken::addToBuffer</a> </td>
          <td>(</td>
          <td class="paramtype">u08bits *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t &amp;&#160;</td>
          <td class="paramname"><em>sz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throw (<a class="el" href="classWrongStunAttrFormatException.html">WrongStunAttrFormatException</a>, <a class="el" href="classWrongStunBufferFormatException.html">WrongStunBufferFormatException</a>)<code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classStunAttr.html#a53076f8b8877047f6854155edd42d794">StunAttr</a>.</p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00299">299</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                                                                                                                 {
                uint64_t reservation_token = ioa_ntoh64(_rt);
                <span class="keywordflow">return</span> <a class="code" href="ns__turn__msg_8h.html#a66ee2e33b2311217a586165c02a6507b">stun_attr_add_str</a>(buffer, &amp;sz, STUN_ATTRIBUTE_RESERVATION_TOKEN, (u08bits*) (&amp;reservation_token), 8);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ac8a61729e3685638ab5288e994ad1f76"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u64bits <a class="el" href="classStunAttrReservationToken.html#ac8a61729e3685638ab5288e994ad1f76">StunAttrReservationToken::getReservationToken</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00292">292</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                            {
                <span class="keywordflow">return</span> _rt;
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a6c9dc57f842fcf9182c575bdbc6fc8a8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classStunAttrReservationToken.html#a6c9dc57f842fcf9182c575bdbc6fc8a8">StunAttrReservationToken::setReservationToken</a> </td>
          <td>(</td>
          <td class="paramtype">u64bits&#160;</td>
          <td class="paramname"><em>rt</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00295">295</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                             {
                _rt = rt;
        }
</pre></div>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/client++/<a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Mon Jan 21 2013 13:10:13 for TURN Server by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
